﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo
{
    [NHibernateEntity(Table = "apl_Logs", Lazy = true)]
    public class Log
    {
        public Log() { }

        [PrimaryKey]
        public virtual int Id { get; set; }

        [Property]
        public virtual DateTime Date { get; set; }
        
        [Property]
        public virtual string Thread { get; set; }
        
        [Property]
        public virtual string Level { get; set; }
        
        [Property]
        public virtual string Logger { get; set; }
        
        [Property]
        public virtual string Username { get; set; }
        
        [Property(Length = 4000)]
        public virtual string Message { get; set; }

        [Property(Length = 4000)]
        public virtual string Exception { get; set; }
    }
}
